/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cronus.server;

/**
 *
 * @author Jannick
 */
public class Main {
    private MainScreen mainscreen;
    private Log log;
    private SqlConnection sqlconnection;
    //Socketconnection
    public SocketConnection socketconnection;
    public Main(){
        //Open nieuwe mainscreen
        mainscreen = new MainScreen(this);
        mainscreen.setVisible(true);
        sqlconnection = new SqlConnection(this);
        log = new Log( this );
        
        //Open nieuwe socketconnection
        socketconnection = new SocketConnection( this );
        socketconnection.handleConnection();
    }
    
    public MainScreen getMainScreen(){
        return mainscreen;
    }
    public SqlConnection getSqlConnection(){
        return sqlconnection;
    }
    public SocketConnection getSocketConnection(){
        return socketconnection;
    }
    
    public Log getLog(){
        return log;
    }
    
    public static void main(String[] args) {
        new Main();
        
    }
}